<!--conf
<sample>
                      <stdduct version="1.6" edition="pro"/>
                               <modifications>
                                              <modified date="070101"/>
                               </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	
<title>Autoloading from JSON</title>

</head>

<body>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>

	<h1>Autoloading from JSON</h1>
	<p>Advanced processing of JSON allows this JavaScript tree menu to handle large amount of data. 
	Dynamical loading of items from JSON stream gives a possibility to create DHTML trees with unlimited 
	number of nodes. dhtmlxTree has an ability to load data asynchronously as-needed (using AJAX) 
	that increases overall performance of the tree.</p>
	
	<div id="treeboxbox_tree" style="width:250px; height:218px;background-color:#f5f5f5;border :1px solid Silver;; overflow:auto;"></div>
	<br>				
	

	<script>
			tree=new dhtmlXTreeObject("treeboxbox_tree","100%","100%",0);

			tree.setSkin('dhx_skyblue');
			tree.setImagePath("../../../codebase/imgs/dhxtree_skyblue/");
			tree.setXMLAutoLoading("php/json.php"); 
			tree.setDataMode("json");
			//load first level of tree
			tree.loadJSON("php/json.php?id=0"); 

	</script>
</body>
</html>
